package com.mzj.saas.mservice.property.repository;

import com.mzj.saas.mservice.property.entity.ComplainSuggestImg;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author hikari
 * @since 2021-05-13
 */
@Repository
public interface ComplainSuggestImgRepository extends JpaRepository<ComplainSuggestImg, Long>, JpaSpecificationExecutor<ComplainSuggestImg> {
    List<ComplainSuggestImg> findByComplainSuggestId(Long complainSuggestId);

    int deleteByComplainSuggestId(Long complainSuggestId);
}
